cmake_minimum_required(VERSION 3.5.0)

set(CMAKE_CXX_STANDARD 17)

file(GLOB local_src *.cpp)
file(GLOB local_headers *.h)

if(WIN32)
set(PHYSX_LIBS 
    PhysXCharacterKinematic_static_64
    PhysXCommon_64
    PhysXCooking_64
    PhysXFoundation_64
    PhysXExtensions_static_64
    PhysXPvdSDK_static_64
    PhysXTask_static_64
    PhysXVehicle_static_64
    PhysX_64
)
endif()

if(UNIX)
set(PHYSX_LIBS 

    PhysXExtensions_static_64
    PhysXCooking_static_64
    PhysX_static_64
    PhysXPvdSDK_static_64
    PhysXCharacterKinematic_static_64
    PhysXCommon_static_64
    PhysXFoundation_static_64
    pthread
    dl
)
endif()

add_library(fxcc_test_e2d_core_physics ${local_src} ${local_headers})

target_link_libraries(fxcc_test_e2d_core_physics PUBLIC fxcc_test_e2d_core ${PHYSX_LIBS})

target_link_libraries(fxcc_test_e2d_core_physics
	PUBLIC 
    fxcc_graph_common
	fxcc_test_e2d_core
	fxcc_test_e2d_core_trans)